<template>
  <div class="collected-container">
    <div class="collected-title">
      <span>收藏记录</span>
    </div>
   <div class="collected-lists">
    <div  class="listName">
      <div class="list-index">
        <span>序号</span>
      </div>
      <div class="list-name" style="color:#666">
        <span >名称</span>
      </div>
      <div class="cancel-collected">
        <span>操作</span>
      </div>
    </div>
    <div class="A-list">
    <div class="list-index">
      <span>1</span>
    </div>
    <div class="list-name">
      <span class="list-link" @click="toPost()">我是你鸡哥</span>
    </div>
    <div class="cancel-collected">
      <span @click="delPost()" class="del">删除</span>
    </div>
    </div>
    <div class="A-list">
      <div class="list-index">
        <span>2</span>
      </div>
      <div class="list-name">
        <span class="list-link" @click="toPost()">基尼太美</span>
      </div>
      <div class="cancel-collected">
        <span @click="delPost()" class="del">删除</span>
      </div>
      </div>
   </div>
   <div class="load-more">
    <span @click="loadMore()">点击查看更多>></span>
   </div>
  </div>
</template>

<script>
import { getPostList } from "@/api/szpt/personalCenter";
export default {
    name:'personalCollected',
    methods: {
      toPost(){
        console.log("用户点击了帖子！");
      },
      delPost(){
        console.log("用户删除了帖子！");
      },
      loadMore(){
        console.log("点击查看更多！");
      }
    },
    mounted() {
      // console.log("user",);
      // getPostList()
      // .then((resp) => {
      //   console.log("####",resp);
      // })
      // .catch((err) => {})
    },
}
</script>

<style scoped>
.collected-container{
  width: 100%;
  height: auto;
  padding: 10px;
  background-color:#f7f8fc;
}
.collected-title{
  width: 100%;
  height: 40px;
  text-align: left;
  line-height: 40px;
  color: #666;
  font-weight: bold;
  padding-left: 10px;
  background-color: white;
  border-top: 10px;
  overflow: hidden;
  border-bottom: 1px solid rgb(232, 230, 230);
  border-top: 1px solid rgb(232, 230, 230);
}
.collected-lists{
  width: 100%;
  height: auto;
  background-color:white;
}
.A-list{
  width: 100%;
  height: 50px;
  line-height: 50px;
  padding-left: 10px;
  border-bottom: 1px solid rgb(232, 230, 230);
 
}
.listName{
  width: 100%;
  height: 50px;
  font-weight: bold;
  color: #666;
  padding-left: 10px;
  border-bottom: 1px solid rgb(232, 230, 230);
  line-height: 50px;
}
.list-index{
  width: 10%;
  display: inline-block;
  color: #666;
  padding-left: 10px;
  border-right: 1px solid rgb(232, 230, 230);
 
}
.list-name{
  width: 80%;
  display: inline-block;
  padding-left: 10px;
  color: #0799f0;
  border-right: 1px solid rgb(232, 230, 230);
 
}
.cancel-collected{
  width: 10%;
  display: inline-block;
  padding-left: 10px;
  color: #666;
 
}
.list-link{
  cursor: pointer;
}
.del{
  color: red;
  cursor: pointer;
}
.load-more{
  width: 100%;
  height: 30px;
  line-height: 30px;
  text-align: center;
  color: #666;
  cursor: pointer;
  margin-top: 5px;
  background-color: white;
}
.load-more span{
  width: 100%;
  height: 100%;
}
</style>